SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 9731: SAS/ACCESS® Interface to OLE DB and SAS/ACCESS® Interface to PC File Formats with MSAccess does not delete all records when delete command issued

DetailsAboutRate It

When using SAS/ACCESS Interface to OLE DB to a MSAccess 2000 table and issuing a delete command through PROC SQL to delete all records, only 2 records are deleted.

This behavior also occurs in SAS/ACCESS Interface to PC Files because that engine is also using the OLE DB Providers for data access.

You can use explicit pass-through, which is PROC SQL Pass-Through, statements to delete rows from a MSAccess table. For example:

  proc sql feedback;
  connect to oledb(init_string="Provider=Microsoft.Jet.OLEDB.4.0;
  Password="";Data Source=K:\db1.mdb;Persist Security Info=True");
  execute (DELETE * FROM deptnew) by oledb;
  quit;

OR

 proc sql feedback;
  connect to oledb(init_string="Provider=Microsoft.ACE.OLEDB.12.0;
  Password="";
  Data Source=c:\My Documents\database1.accdb;
  Persist Security Info=True");
  execute (DELETE * FROM class) by oledb;
  quit;

OR

 proc sql feedback;
 connect to access(path="c:\My Documents\database1.accdb");
 execute (DELETE * FROM class) by access;
 quit;



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to OLE DBMicrosoft Windows XP Professional8.2 TS2M09.2 TS2M2
Microsoft Windows 2000 Professional8.2 TS2M0
Microsoft Windows 95/988.2 TS2M0
Microsoft Windows NT Workstation8.2 TS2M0
Windows Millennium Edition (Me)8.2 TS2M0
SAS SystemSAS/ACCESS Interface to PC FilesMicrosoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M2
Windows Vista9.1 TS1M3 SP49.2 TS2M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.